/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.pojo;

/**
 *
 * @author TiOc
 */
public class Menu implements java.io.Serializable
{
    //<editor-fold defaultstate="collapsed" desc="1. Các thuộc tính">
    private int idMenu;
    private String nameMenu;
    private String link;
    private int order;
    private int isPublish;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="2. Các phương thức khởi tạo">
    public Menu()
    {
        this.idMenu = -1;
        this.nameMenu = "";
        this.link = "";
        this.order = -1;
        this.isPublish = -1;
    }
    
    public Menu(int idMenu, String nameMenu, String link, int order, int isPublish)
    {
        this.idMenu = idMenu;
        this.nameMenu = nameMenu;
        this.link = link;
        this.order = order;
        this.isPublish = isPublish;
    }
    
    public Menu(Menu mn)
    {
        this.idMenu = mn.idMenu;
        this.nameMenu = mn.nameMenu;
        this.link = mn.link;
        this.order = mn.order;
        this.isPublish = mn.isPublish;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="3. Các phương thức get/set">

    public int getIdMenu() {
        return idMenu;
    }

    public void setIdMenu(int idMenu) {
        this.idMenu = idMenu;
    }

    public int getIsPublish() {
        return isPublish;
    }

    public void setIsPublish(int isPublish) {
        this.isPublish = isPublish;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getNameMenu() {
        return nameMenu;
    }

    public void setNameMenu(String nameMenu) {
        this.nameMenu = nameMenu;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }
    
    @Override
    public String toString()
    {
        return this.nameMenu;
    }
    //</editor-fold>
}
